#!usr/bin/python
#coding=utf-8

import urllib.request


#写文件
def writeFile( data, path ):
    f = open(path, 'w')
    f.write(data)
    f.close()


#下载文件
def downloadFile(url, path):
    urllib.request.urlretrieve(url, path)
